Skip to content

Fix issue with reading from synced file in a sharepoint folder #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

IsakNaslundBh
Copy link
Contributor

Issues addressed by this PR

Closes #20

Adding FileShare.Delete to the FileShare enum when constructing the filestream. Fixes issues of unable to access file when trying to read from a file in a synced Sharepoint folder.

Test files

  1. Sync a Shaprepoint folder with an excel file
  2. Open the file
  3. Read from the file

Changelog

Additional comments

@IsakNaslundBh IsakNaslundBh added the type:bug Error or unexpected behaviour label Apr 3, 2023
@IsakNaslundBh IsakNaslundBh requested a review from adecler April 3, 2023 07:53
@IsakNaslundBh IsakNaslundBh self-assigned this Apr 3, 2023
Copy link
Member

@adecler adecler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this will have to be tested by someone with a working OneDrive but I am happy with the change from the perspective of the code.

@FraserGreenroyd FraserGreenroyd self-requested a review April 13, 2023 10:22
Copy link

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the code and am happy with that.

I ran a test on today's alpha, and managed to replicate the issue described in #20 . I then ran the same test on this PR, and the issue went away, with the Excel file contents being pulled suitably into Grasshopper with the file from SharePoint open in Excel at the same time.

This PR therefore brings an enhancement to the process so I am happy to see this deployed.

@FraserGreenroyd
Copy link

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 14, 2023

@FraserGreenroyd to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 2 requests in the queue ahead of you.

@FraserGreenroyd
Copy link

@BHoMBot check core
@BHoMBot check null-handling
@BHoMBot check serialisation

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 14, 2023

@FraserGreenroyd to confirm, the following actions are now queued:

  • check core
  • check null-handling
  • check serialisation

There are 18 requests in the queue ahead of you.

@FraserGreenroyd
Copy link

@BHoMBot check versioning

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 14, 2023

@FraserGreenroyd to confirm, the following actions are now queued:

  • check versioning

@FraserGreenroyd
Copy link

@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 14, 2023

@FraserGreenroyd to confirm, the following actions are now queued:

  • check installer

There are 2 requests in the queue ahead of you.

@FraserGreenroyd
Copy link

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 14, 2023

@FraserGreenroyd to confirm, the following actions are now queued:

  • check ready-to-merge

@FraserGreenroyd FraserGreenroyd merged commit 1cde8ed into develop Apr 14, 2023
@FraserGreenroyd FraserGreenroyd deleted the Excel_Toolkit-#20-FixReadFromOpenFileInSyncedSharepointFolder branch April 14, 2023 12:22
@bhombot-ci bhombot-ci bot mentioned this pull request Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to pull from open Excel file stored in a synced Sharepoint folder
3 participants